<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Clause: chatopera::bot::crfsuite::Attribute类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Clause
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Chatopera Language Understanding Service.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="inherits.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacechatopera.html">chatopera</a></li><li class="navelem"><b>bot</b></li><li class="navelem"><b>crfsuite</b></li><li class="navelem"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html">Attribute</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">chatopera::bot::crfsuite::Attribute类 参考<div class="ingroups"><a class="el" href="group__crfsuite__hpp__api__doc.html">Data structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="crfsuite__api_8hpp_source.html">crfsuite_api.hpp</a>&gt;</code></p>
<div class="dynheader">
chatopera::bot::crfsuite::Attribute 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1crfsuite_1_1Attribute__coll__graph.png" border="0" usemap="#chatopera_1_1bot_1_1crfsuite_1_1Attribute_coll__map" alt="Collaboration graph"/></div>
<map name="chatopera_1_1bot_1_1crfsuite_1_1Attribute_coll__map" id="chatopera_1_1bot_1_1crfsuite_1_1Attribute_coll__map">
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a37ef8769792c92e065605a62f8e7e31f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html#a37ef8769792c92e065605a62f8e7e31f">Attribute</a> ()</td></tr>
<tr class="separator:a37ef8769792c92e065605a62f8e7e31f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa90cbc6b5c243ed94d8c94d3db9dd9b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html#aa90cbc6b5c243ed94d8c94d3db9dd9b9">Attribute</a> (const std::string &amp;name)</td></tr>
<tr class="separator:aa90cbc6b5c243ed94d8c94d3db9dd9b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a611a720d69d38ef3837045d6ab371085"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html#a611a720d69d38ef3837045d6ab371085">Attribute</a> (const std::string &amp;name, double val)</td></tr>
<tr class="separator:a611a720d69d38ef3837045d6ab371085"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00fc904dabbcca7bba251bedb6cecdff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a00fc904dabbcca7bba251bedb6cecdff"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Attribute::set_attr</b> (const std::string &amp;name)</td></tr>
<tr class="separator:a00fc904dabbcca7bba251bedb6cecdff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6659126015c3da8cd780d5099eb36d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6659126015c3da8cd780d5099eb36d9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Attribute::set_val</b> (const double &amp;val)</td></tr>
<tr class="separator:ab6659126015c3da8cd780d5099eb36d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aff24066cf639656901918dec263a2b6f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff24066cf639656901918dec263a2b6f"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html#aff24066cf639656901918dec263a2b6f">attr</a></td></tr>
<tr class="memdesc:aff24066cf639656901918dec263a2b6f"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html">Attribute</a>. <br /></td></tr>
<tr class="separator:aff24066cf639656901918dec263a2b6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9577b13192af237c2cf8a50aa7aad802"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9577b13192af237c2cf8a50aa7aad802"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html#a9577b13192af237c2cf8a50aa7aad802">value</a></td></tr>
<tr class="memdesc:a9577b13192af237c2cf8a50aa7aad802"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classchatopera_1_1bot_1_1crfsuite_1_1Attribute.html">Attribute</a> value (weight). <br /></td></tr>
<tr class="separator:a9577b13192af237c2cf8a50aa7aad802"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Tuple of attribute and its value. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a37ef8769792c92e065605a62f8e7e31f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">chatopera::bot::crfsuite::Attribute::Attribute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Construct an attribute with the default name and value. </p>

</div>
</div>
<a class="anchor" id="aa90cbc6b5c243ed94d8c94d3db9dd9b9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">chatopera::bot::crfsuite::Attribute::Attribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Construct an attribute with the default value. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The attribute name. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a611a720d69d38ef3837045d6ab371085"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">chatopera::bot::crfsuite::Attribute::Attribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Construct an attribute. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The attribute name. </td></tr>
    <tr><td class="paramname">val</td><td>The attribute value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/ner/src/<a class="el" href="crfsuite__api_8hpp_source.html">crfsuite_api.hpp</a></li>
</ul>
</div><!-- contents -->
<address class="footer">
    <small>
        &nbsp; Copyright (c) (2019-2020) &nbsp;<a href="https://www.chatopera.com">
            北京华夏春松科技有限公司
        </a>. All Rights Reserved
        &nbsp;
    </small>
</address>